using NUnit.Framework;
using Rhino.Mocks;

namespace Tests
{
	[TestFixture]
	public class TestBase
	{
		protected MockRepository mocks;

		[SetUp]
		protected virtual void SetUp()
		{
			mocks = new MockRepository();
		}

		[TearDown]
		protected virtual void TearDown()
		{
			mocks.VerifyAll();
		}

		protected T NewMock<T>()
		{
			return mocks.StrictMock<T>();
		}
	}
}